import request from "../utils/index"
//获取热卖区的数据
export function getHotData(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/getHotData',
        params
    })
}
//获取优选精品 数据getChoseData
export function getChoseData(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/getChoseData',
        params
    })
}
//getCarList  购物车数据
export function getCarList(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/getCarList',
        params
    })
}
//购物车添加一条addCarShop
export function addCarShop(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/addCarShop',
        params
    })
}
//获取购物车数据getcardata
export function getcardata(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/getcardata',
        params
    })
}
//获取用户搜索历史数据getserachdata
export function getserachdata(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/getserachdata',
        params
    })
}
//修改用户搜索历史
export function change_history(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/change_history',
        params
    })
}
//根据搜索信息查询数据searchdata
export function searchdata(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/searchdata',
        params
    })
}
//修改购物车数量changeShopNum
export function changeShopNum(params?: object) {
    return request({
        method: 'GET',
        url: 'http://localhost:3001/Xjq/changeShopNum',
        params
    })
}